import Vue from 'vue'
import Router from 'vue-router'
import home from '@/views/home'
import makeFood from '@/views/makeFood'
import foodSearch from '@/views/foodSearch'
import allFoodSearch from '@/views/allFoodSearch'
import searchResult from '@/views/searchResult'
import allSearchResult from '@/views/allSearchResult'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/makeFood',
      name: 'makeFood',
      component: makeFood
    },
    {
      path: '/foodSearch',
      name: 'foodSearch',
      component: foodSearch
    },
    {
      path: '/allFoodSearch',
      name: 'allFoodSearch',
      component: allFoodSearch
    },
    {
      path: '/searchResult',
      name: 'searchResult',
      component: searchResult
    },
    {
      path: '/allSearchResult',
      name: 'allSearchResult',
      component: allSearchResult
    }
  ]
})
